// pages/friendsParty/friendsParty.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    currentCategory: '壹天聚',
    contentList: {
      '壹天聚': [
        {
          image: 'https://tse1-mm.cn.bing.net/th/id/OIP-C.CULzbv_ySZaeDcraDpOySwHaFj?o=7rm=3&rs=1&pid=ImgDetMain&o=7&rm=3',
          title: '（开业福利，立减300元）壹天聚俱乐部-上海莘庄店',
          tags: ['自营壹天聚', 'k歌棋牌'],
          price: 899
        },
        {
          image: 'https://ts2.tc.mm.bing.net/th/id/OIP-C.9xKmQPA8euQRKtzGycOhIwHaLM?rs=1&pid=ImgDetMain&o=7&rm=3',
          title: '壹天聚俱乐部上海共康店（老上海情怀型！）',
          tags: ['自营壹天聚', 'k歌棋牌'],
          price: 799
        },
        {
          image: 'https://img.qianggen.net/uploadfile/2023/0418/20230418065519181.jpg',
          title: '壹天聚俱乐部 亚新店',
          tags: ['自营壹天聚', 'k歌棋牌'],
          price: 899
        },
        {
          image: 'https://ts1.tc.mm.bing.net/th/id/OIP-C.-ARQp8jY2PwdGrBjy8wtKgHaE8?rs=1&pid=ImgDetMain&o=7&rm=3',
          title: '人均90起！上海航头',
          tags: ['自营壹天聚', 'k歌棋牌'],
          price: 90
        }
      ],
      '家庭聚餐': [
        {
          image: 'https://ts3.tc.mm.bing.net/th/id/OIP-C.yqU3FY9t5hjilhUSHjPS5AHaFd?w=1024&h=755&rs=1&pid=ImgDetMain&o=7&rm=3',
          title: '家庭聚餐套餐A',
          tags: ['家庭聚餐', '美食'],
          price: 599
        },
        {
          image: 'https://ts1.tc.mm.bing.net/th/id/R-C.2cff55b54a872978eb941298ee38625c?rik=6V6hCfC7HIC4RQ&riu=http%3a%2f%2fimages4.c-ctrip.com%2ftarget%2f2A0p16000000z8k9fDBCC.jpg&ehk=UZOH%2bVbXQ9A3fMgadkZrJx6SOc8nIJD8MlZLfsNaitw%3d&risl=&pid=ImgRaw&r=0',
          title: '家庭聚餐套餐B',
          tags: ['家庭聚餐', '美食'],
          price: 699
        },
        {
          image: 'https://ts2.tc.mm.bing.net/th/id/OIP-C.oTK5L22zrLmtGLahK5jk3wHaHa?rs=1&pid=ImgDetMain&o=7&rm=3',
          title: '家庭聚餐套餐C',
          tags: ['家庭聚餐', '美食'],
          price: 799
        },
        {
          image: 'https://ts1.tc.mm.bing.net/th/id/R-C.f8d83e04af11c98089cd5b3d13bfdd53?rik=wPdf6GgRLdVVgQ&riu=http%3a%2f%2fcsfrcd.com%2fstatic%2fupload%2fimage%2f20230505%2f1683264073156835.jpg&ehk=TapH1QuSKqauRAfefFCylX%2bdrFhYrvDxQnRG%2fdY00wM%3d&risl=&pid=ImgRaw&r=0',
          title: '家庭聚餐套餐D',
          tags: ['家庭聚餐', '美食'],
          price: 899
        }
      ],
      '好友小聚': [
        {
          image: 'https://ts1.tc.mm.bing.net/th/id/OIP-C.uMXzeZH5Hk-caYin6vlx5wHaHa?rs=1&pid=ImgDetMain&o=7&rm=3',
          title: '好友小聚套餐A',
          tags: ['好友小聚', '美食'],
          price: 499
        },
        {
          image: 'https://ts4.tc.mm.bing.net/th/id/OIP-C.FGIZ1AvI1WkjQD6RRMpyvAHaNL?rs=1&pid=ImgDetMain&o=7&rm=3',
          title: '好友小聚套餐B',
          tags: ['好友小聚', '美食'],
          price: 599
        },
        {
          image: 'https://preview.qiantucdn.com/auto_machine/20221204/0ee7fda4-7dff-454f-addc-9d425b3e34fc.jpg!w1024_new_small_2',
          title: '好友小聚套餐C',
          tags: ['好友小聚', '美食'],
          price: 699
        },
        {
          image: 'https://ts4.tc.mm.bing.net/th/id/OIP-C.T1PkYuMv5Fl4XM-QhJEphAHaJ5?rs=1&pid=ImgDetMain&o=7&rm=3',
          title: '好友小聚套餐D',
          tags: ['好友小聚', '美食'],
          price: 799
        }
      ],
      '沪上老店': [
        {
          image: 'https://ts1.tc.mm.bing.net/th/id/OIP-C._dQOz_OOSHAmK3CAyf5UUQHaE8?rs=1&pid=ImgDetMain&o=7&rm=3',
          title: '沪上老店套餐A',
          tags: ['沪上老店', '美食'],
          price: 599
        },
        {
          image: 'https://ts1.tc.mm.bing.net/th/id/R-C.8299ed3c62ee980cfa141db5035e3aac?rik=wHVMhVG%2fUpZwXg&riu=http%3a%2f%2fimg.qianggen.net%2fuploadfile%2f2023%2f0302%2f20230302105241390.jpg&ehk=aaMUxhnGGD%2b3hDOwfW8wG1CjgI1dmFz8tcdkSDTtkkE%3d&risl=&pid=ImgRaw&r=0',
          title: '沪上老店套餐B',
          tags: ['沪上老店', '美食'],
          price: 699
        },
        {
          image: 'https://mars-ly-oss.malldongli.com/upload/default/20230925144104/3c0c267253e6a64d3e7cc11684256d2d.jpg?imageMogr2/auto-orient/thumbnail/!350x350r/gravity/Center/crop/350x350/interlace/1/blur/1x0/quality/80%7Cimageslim',
          title: '沪上老店套餐C',
          tags: ['沪上老店', '美食'],
          price: 799
        },
        {
          image: 'https://ts3.tc.mm.bing.net/th/id/OIP-C.OAtplraD1HPtH2phJvsvKwHaE-?rs=1&pid=ImgDetMain&o=7&rm=3',
          title: '沪上老店套餐D',
          tags: ['沪上老店', '美食'],
          price: 899
        }
      ],
      '自助下午茶': [
        {
          image: 'https://r1.visitbeijing.com.cn/vbj-s/2018/0503/20180503023650220.jpg',
          title: '自助下午茶套餐A',
          tags: ['自助下午茶', '美食'],
          price: 399
        },
        {
          image: 'https://r1.visitbeijing.com.cn/vbj-s/2018/0503/20180503023651664.jpg',
          title: '自助下午茶套餐B',
          tags: ['自助下午茶', '美食'],
          price: 499
        },
        {
          image: 'https://ts1.tc.mm.bing.net/th/id/R-C.766c31135ff1408bc7721699a1109416?rik=NU%2bNBZqtgbQnHg&riu=http%3a%2f%2fwww.grandhotels.com.cn%2fPublic%2fUploads%2fEditorImages%2f20180412%2f5acefbb699135.jpg&ehk=dSANfhz3AhYFjv06RKunFXY%2bXv2Fh1daTnBjS1QeNzU%3d&risl=&pid=ImgRaw&r=0',
          title: '自助下午茶套餐C',
          tags: ['自助下午茶', '美食'],
          price: 599
        },
        {
          image: 'https://ts1.tc.mm.bing.net/th/id/R-C.79c4e213f3ad0d4d0c72f10307b5a9fb?rik=04cmTvqcES7fYg&riu=http%3a%2f%2fwww.pengyediy.com%2fuploads%2f20180911%2f15366614338367.jpg&ehk=ddKIBkKKVqcMo6LGWIDGiEvdacEWpJtM7UI%2fh9UPr8k%3d&risl=&pid=ImgRaw&r=0',
          title: '自助下午茶套餐D',
          tags: ['自助下午茶', '美食'],
          price: 699
        }
      ],
      '当季特选': [
        {
          image: 'https://ts4.tc.mm.bing.net/th/id/OIP-C.tQAcuLfVfsd7wnkstla3UAHaMd?rs=1&pid=ImgDetMain&o=7&rm=3',
          title: '当季特选套餐A',
          tags: ['当季特选', '美食'],
          price: 599
        },
        {
          image: 'https://ts1.tc.mm.bing.net/th/id/R-C.f712a640f03c7ae4112adcc6c9c3a123?rik=Ni4ul2uFmPqRPw&riu=http%3a%2f%2fimg.xiangmu.com%2fuploadpic%2f201208%2fbig%2f0128874416.jpg&ehk=EcG5bisOhZAQIWsZWzZODTpWCiCKil5NzFEZy0tPThk%3d&risl=&pid=ImgRaw&r=0',
          title: '当季特选套餐B',
          tags: ['当季特选', '美食'],
          price: 699
        },
        {
          image: 'https://ts3.tc.mm.bing.net/th/id/OIP-C.vBVm7lXekGaDaH2h2slT7QHaLI?rs=1&pid=ImgDetMain&o=7&rm=3',
          title: '当季特选套餐C',
          tags: ['当季特选', '美食'],
          price: 799
        },
        {
          image: 'https://ts3.tc.mm.bing.net/th/id/OIP-C.tPvFR3MZExnTrCn-LRNLHAAAAA?rs=1&pid=ImgDetMain&o=7&rm=3',
          title: '当季特选套餐D',
          tags: ['当季特选', '美食'],
          price: 899
        }
      ]
    }

  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {

  },
  // 切换分类
  switchCategory(e) {
    const category = e.currentTarget.dataset.category;
    this.setData({
      currentCategory: category
    });
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})